#include <iostream>
#include <memory>
#include <functional>
#include "tcpServer.hpp"
#include "calFunction.hpp"

int main()
{
    std::shared_ptr<tcpServer> svr(new tcpServer(8080, 
    std::bind(&server_cal::calInServer, server_cal(), std::placeholders::_1)));
    svr->init();
    svr->loop(-1);
    return 0;
}